<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title><fmt:message key="event.info.detail.title" />
			<meta name="heading" content="<fmt:message key='event.info.detail.title'/>" />
	</head>

	<body>

			<table>
				<tr>
					<td>
						<fmt:message key="event.info.people"></fmt:message>
					</td>
					<td>
						<input name="" value="${event.user.fullName }">
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="event.info.name" />
					</td>
					<td>
						<input name="" value="${event.eventName}" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="event.info.address" />
					</td>
					<td>
						<input name="" value="${event.eventAdd}" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="event.info.starttime" />
					</td>
					<td>
						<input name="" value="${event.startDate} ${event.startTime }" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="event.info.endtime" />
					</td>
					<td>
						<input name="" value="${event.endDate} ${event.endTime }" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="event.info.budgetCenter" />
					</td>
					<td>
						<input name="" value="${event.budgetCenter.bcName}" readonly="readonly"/>
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="event.info.isReviewed" />
					</td>
					<td>
						<input name="" value="${event.isReviewed ? 'Yes' : 'No'}" readonly="readonly"/>
					</td>
				</tr>
				<c:if test="${event.isReviewed }">
				<tr>
					<td>
						<fmt:message key="event.info.isPassed" />
					</td>
					<td>
						<input name="" value="${event.isPassed ? 'Yes' : 'No'}" readonly="readonly"/>
					</td>
				</tr>
				<c:if test="${not event.isPassed }">
				<tr>
					<td>
						<fmt:message key="event.info.review.remarks" />
					</td>
					<td>
						<input name="" value="${event.reviewRemarks}" readonly="readonly"/>
					</td>
				</tr>
				</c:if>
				</c:if>
				<tr>
					<td>
						<fmt:message key="event.info.description" />
					</td>
					<td>
						<textarea cols="20" rows="5">${event.eventText}</textarea> 
						<br /><br />
						<c:forEach items="${attachments }" var="attachment">
							<a href="<c:url value="/event/attachment.html?id=${attachment.id }"/>" title="${attachment.sourceName}" target="_blank">${attachment.sourceName}</a>
						</c:forEach>
						
					</td>
				</tr>
				<tr height="15">
					<td height="15">
						
					</td>
					<td>
						
					</td>
				</tr>
				<tr>
					<td><input type="button" name="return"
							onclick="location.href='<c:url value='${from }'/>'"
							value="<fmt:message key="button.return"/>" /></td>
					<td>
						
						
					</td>

				</tr>
			</table>
		
	</body>
</html>
